﻿using PC.PickleJar.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PC.PickleJar.Trello.Domain
{
	public partial class TrelloCard : SourceItemBase
	{
		private TrelloCardKey key;

		public override ItemKeyBase ItemKey
		{
			get
			{
				if (this.key == null)
				{
					this.key =
						new TrelloCardKey(
							this.shortUrl,
							this.name);
				}

				return this.key;
			}
		}

		public override DateTime Timestamp
		{
			get
			{
				return this.dateLastActivity;
			}
		}

		public override string FriendlyTypeName
		{
			get
			{
				return "Trello Card";
			}
		}
	}
}
